package com.example.myblogserver.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel(description = "新增文章时传递的数据模型")
public class AddArticleDTO {

    @ApiModelProperty("作者id")
    private Long userId;

    @ApiModelProperty("文章分类")
    private Long categoryId;

    @ApiModelProperty("文章标题")
    private String title;

    @ApiModelProperty("文章内容")
    private String content;

    @ApiModelProperty("封面内容") //可以空的
    private List<String> markdownContent;
}
